package com.xieyingwangluo.yxpart.service.impl;

import com.xieyingwangluo.yxpart.entity.CompanyInfoModel;
import com.xieyingwangluo.yxpart.mapper.CompanyInfoMapper;
import com.xieyingwangluo.yxpart.service.CompanyInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CompanyInfoServiceImpl implements CompanyInfoService {
    @Autowired
    private CompanyInfoMapper companyInfoMapper;
    @Override
    public int add(CompanyInfoModel companyInfoModel) {
        return companyInfoMapper.add(companyInfoModel);
    }

    @Override
    public int del(String noid) {
        return companyInfoMapper.del(noid);
    }

    @Override
    public int update(CompanyInfoModel companyInfoModel) {
        return companyInfoMapper.update(companyInfoModel);
    }

    @Override
    public CompanyInfoModel selO(String noid) {
        return companyInfoMapper.selO(noid);
    }

    @Override
    public List<CompanyInfoModel> selA(CompanyInfoModel companyInfoModel) {
        return companyInfoMapper.selA(companyInfoModel);
    }
}
